package com.yunxin.customui.bean;

import com.yunxin.tools.commonbean.tips.TipsMessage;
import com.yunxin.tools.plantbusiness.ConfigbusinessUtil;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * ui 组件抽象父类
 *
 * @author LGY
 * @date 2021/09/14
 */
public abstract class UIComponent implements Serializable {
    /**
     * 组件类型
     */
    @Getter
    final String componentType;

    @Getter
    final Integer componentId;


    /**
     * html渲染时候的属性名称
     */
    @Setter@Getter
    String attributeName;

    @Setter@Getter
    String cron;


    /**
     *  根据dataId拿描述的工具
     */
    public static ConfigbusinessUtil Custom_ConfigBusinessUtil;

    /**
     * 提示消息列表
     */
    @Getter@Setter
    protected List<TipsMessage> tipsMessageList;

    protected UIComponent(String componentType , Integer componentId) {
        this.componentType = componentType;
        this.componentId = componentId;
    }



}
